<!DOCTYPE html>
<html>


<!-- Mirrored from www.zi-han.net/theme/hplus/login.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:18:23 GMT -->
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>H+ 后台主题UI框架 - 登录</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico">
    <link href="css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">

    <link href="css/animate.min.css" rel="stylesheet">
    <link href="css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html"/>
    <![endif]-->
    <script>if (window.top !== window.self) {
            window.top.location = window.location;
        }</script>
</head>
<style>
    body{
        background:url('img/background.jpg') no-repeat;
        background-size:100% 100%;
    }
    /*.logo-name{
        width:779px;
        position: relative;
        left:50%;
        margin-left:-400px;
    }*/
</style>
<body class="gray-bg">

<div class="middle-box text-center loginscreen  animated fadeInDown">
    <div>
        <div>

            <h1 class="logo-name"><img style="width: 100%;" src="/img/logo.png"/></h1>

        </div>

        <form class="m-t" role="form" method="POST" action="{{ route('login') }}">
            {{ csrf_field() }}
            <div class="form-group">
                <input id="email" placeholder="用户名" class="form-control" name="username"
                       value="{{ old('email') }}" required autofocus>
            </div>
            <div class="form-group">
                <input placeholder="密码" id="password" type="password" class="form-control" name="password" required>
            </div>
            <button type="submit" class="btn btn-primary block full-width m-b">登 录</button>


            <p class="text-muted text-center"><a href="{{ route('password.request') }}">
                    <small>忘记密码了？</small>
                </a></p>

        </form>
    </div>
</div>
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/plugins/layer/layer.min.js"></script>
<script src="js/bootstrap.min.js?v=3.3.6"></script>
<script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
<script>
    $('form').submit(function () {
        var index = layer.load(2, {
            shade: [0.1, '#000'] //0.1透明度的白色背景
        });
        var formData = $('form').serializeArray();
        var data = {};
        for (var x in formData) {
            data[formData[x].name] = formData[x].value;
        }

        $.ajax({
            url: "{{ url('login') }}",
            data: data,
            dataType: 'json',
            type: 'post',
            success: function (result) {
                layer.close(index);
                if(result.Success){
                    layer.msg(result.Message,{icon:6,time:1000},function(){
                        location.href = '/admin';
                    });
                }else{
                    layer.msg(result.Message, {icon: 5});
                }
            },
            error: function () {
                layer.close(index);

            }
        });
        return false;
    });
</script>
</body>


<!-- Mirrored from www.zi-han.net/theme/hplus/login.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:18:23 GMT -->
</html>

